package com.funmi.lizip.service;

import com.funmi.lizip.common.base.R;
import com.funmi.lizip.entity.Photo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.funmi.lizip.entity.dto.photo.PhotoAddRequest;
import com.funmi.lizip.entity.dto.photo.PhotoSQueryRequest;
import com.funmi.lizip.entity.dto.photo.PhotoUpdateRequest;
import com.funmi.lizip.entity.dto.photo.PhotoValidRequest;
import com.funmi.lizip.entity.vo.StatisticsPhotoVo;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yeyg
 * @since 2022-11-02
 */
public interface PhotoService extends IService<Photo> {

    Boolean updateById(int id, PhotoUpdateRequest updateRequest);

    boolean insert(PhotoAddRequest request) throws IOException;

    R updateValid(HashMap<String, ArrayList<Integer>> request);

    HashMap<String, List<T>> statistical();

    StatisticsPhotoVo getStatistics(PhotoSQueryRequest request);

}
